package mvv.learn.spring.dto.elasticsearch;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @author Manh Vu
 */
public class ElsEmployeeDto extends ElsAbsDto {
	private long employeeId;
	private Integer commissionPct;
	private String email;
	private String firstName;
	private String lastName;
	private String phoneNumber;
	private BigDecimal salary;

	public long getEmployeeId() {
		return employeeId;
	}

	public Integer getCommissionPct() {
		return commissionPct;
	}

	public String getEmail() {
		return email;
	}

	public String getFirstName() {
		return firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public BigDecimal getSalary() {
		return salary;
	}

	public void setEmployeeId(long employeeId) {
		this.employeeId = employeeId;
	}

	public void setCommissionPct(Integer commissionPct) {
		this.commissionPct = commissionPct;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public void setSalary(BigDecimal salary) {
		this.salary = salary;
	}

	/** @author Manh Vu */
	@JsonIgnore
	@Override
	public String getId() {
		return String.valueOf(getEmployeeId());
	}
}
